package com.bindapp.activity;

import android.graphics.PorterDuff;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;

import com.bindapp.R;
import com.bindapp.model.DeviceStepTwoModel;
import com.gyf.barlibrary.ImmersionBar;

public class DeviceStepTwoActivity extends AppCompatActivity {
    protected ImmersionBar mImmersionBar;
    private DeviceStepTwoModel model;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        model=new DeviceStepTwoModel(this);
        setContentView(model.getBinding().getRoot());
        mImmersionBar = ImmersionBar.with(this);
        mImmersionBar.keyboardEnable(true).statusBarDarkFont(false).init();




        setSupportActionBar(model.getBinding().toolbar);
        getSupportActionBar().setHomeButtonEnabled(true);
        getSupportActionBar().setDisplayHomeAsUpEnabled(true);
        Drawable drawable = model.getBinding().toolbar.getNavigationIcon();//
        drawable.setColorFilter(getResources().getColor(R.color.white), PorterDuff.Mode.SRC_ATOP);
        getSupportActionBar().setHomeAsUpIndicator(drawable);

    }
}
